package com.aspire.aimini;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * AI图形管理系统启动类
 *
 * @author wangguiyou
 * @date 2024-12-19
 * @description AI图形管理系统主启动类，配置了数据库扫描、事务管理、异步处理和定时任务
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.aspire.aimini.repository")
@EnableTransactionManagement
@EnableAsync
@EnableScheduling
public class AiMiniApplication {

    public static void main(String[] args) {
        SpringApplication.run(AiMiniApplication.class, args);

        // 启动成功日志
        log.info("\n" +
                "====================================\n" +
                "    AI图形管理系统启动成功!\n" +
                "    接口文档地址: http://localhost:8080/doc.html\n" +
                "    健康检查地址: http://localhost:8080/actuator/health\n" +
                "====================================");
    }
}